

package org.eddycar.jproyeddycar.contrato.dao;

import java.util.List;
import org.eddycar.jproyeddycar.dao.*;
import org.eddycar.jproyeddycar.contrato.modelo.*;

public class DaoContratoCompraVentaConRDD extends JpaDao<String, ContratoCompraVentaConRDD> {

    @Override
    public ContratoCompraVentaConRDD buscarId(String id) {
            return (ContratoCompraVentaConRDD)getEm().find(ContratoCompraVentaConRDD.class, id);

   }


    public List<ContratoCompraVentaConRDD> buscarPorCedula(String cedula) {
        return getEm().createQuery("Select c FROM ContratoCompraVentaConRDD c where c.id = '"+cedula+"'").getResultList();
    }

}
